package com.zheng.damo01.Damoclass;

public abstract class Ainmal {
    private String name;
    private String c0lor;
    private int age;

    public Ainmal() {
    }

    public Ainmal(String name, String c0lor, int age) {
        this.name = name;
        this.c0lor = c0lor;
        this.age = age;
    }
    public abstract void eat();

    public void lookHome(){
        System.out.println("看家");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getC0lor() {
        return c0lor;
    }

    public void setC0lor(String c0lor) {
        this.c0lor = c0lor;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
